<?php

 

$source = "http://tp50.com/file.php?action=3&fm_current_dir=D%3A%5Cwamp64%5Cwww%5Ctp50%5Cpublic%5C&filename=favicon.ico";

exit;
$data=file_get_contents($source);
$destination = './favicon.ico';

$file = fopen($destination,"w+");

fputs($file,$data);//写入文件

fclose($file);